<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>

		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<LINK href="showAllOrg.files/style.htm" rel=stylesheet>
		<LINK href="showAllOrg.files/content.htm" rel=stylesheet>
		
<title>配舱回单明细</title>
 <script type="text/javascript">
		    var djConfig = {
				isDebug:true,
				parseOnLoad:true,
				usePlainJson:true
		    };
		</script>
		 
		<script type="text/javascript" src="dojo/dojo/dojo.js"></script>
		<script type="text/javascript" src="dojo/dijit/dijit.js"></script>

		<script type="text/javascript">
    		dojo.require("dijit.form.Button");
    		dojo.require("dojo.rpc.JsonService");    	
    	</script>
    	<script language="JavaScript" type="text/javascript">
    		var orderBoxService = new dojo.rpc.JsonService("box/order/OrderBoxService?smd");
    		var orderPlanImportService = new dojo.rpc.JsonService("box/alloc/OrderPlanImportService?smd");
			var makeShipperNoteService = new dojo.rpc.JsonService("box/order/MakeShipperNoteService?smd");

    		//页面加载时的一些操作
			dojo.addOnLoad(load);
			function load() {
				initPage();
			}
			function initPage() {
				makeShipperNoteService.getOrderPlan().addCallback(function (orderPlan) {
					makeShipperNoteService.getAllocDetails().addCallback(function (ad) {
						makeShipperNoteService.getShipperNote().addCallback(function (sn) {
							console.dir(orderPlan);
							document.getElementById("sn_id1").value = sn.id + "号配舱回单明细";
							document.getElementById("date").innerHTML = "发放日期：" + showDate();
							document.getElementById("sn_id2").innerHTML = "第" + sn.id + "号";
							document.getElementById("shipcom").innerHTML = orderPlan.shipSchedule.shipInfo.shipComInfo.shortTitle;
							document.getElementById("cancel_date").innerHTML = orderPlan.cancelTimeString;
							document.getElementById("box_total").innerHTML = ad.bigNum + ad.smallNum;
							document.getElementById("trans_term").innerHTML = ad.commission.transportTerms;
							document.getElementById("sender_name").innerHTML = ad.commission.sender.name;
						});
					});
				});
			}
			//得到当前日期
			function showDate() {
				var today = new Date();   
				var day = today.getDate();   
				var month = today.getMonth() + 1;   
				var year = today.getFullYear();   
				return year + "-" + month + "-" + day;
			}
			//制装箱单
			function make_container_load() {
				orderBoxService.setLoadLoc(document.getElementById("load_loc").value).addCallback(function () {
					window.open("装箱单列表.htm", "_self")
				});
			}
    	</script>
</head>

<body>
<font face="隶书" color="3656B9" ; style="font-size: 18px;">配舱回单明细</font><br>
<img src="showAllOrg.files/line2.gif"><br>

<center>

	<table width="700" border="0" cellpadding="0" cellspacing="0" >		
     	 <tr height="80">
       <td class="ctitle" ><input id="sn_id1" class ="billtitle" value="10022号配舱回单明细" size=40></td>
      </tr>
	</table>

	<table width="760" border="0" cellpadding="0" cellspacing="0" >
    <tr>
    <td	id="date" class="ctitle"  >发放日期：2008-01-02</td>
	    
	
    <td id="sn_id2" class="ctitle"   >
    第10022
    号
    </td>
	
	<td class="rtitle">单据类型：</td>  <td  	class="ltitle"><select name="Bill_type">
			<option value="I" selected="selected">初始化单据</option>
			  </select>        
          </td>
    </tr>
	</table>

	<table  class="titlearea" width="760" border="0" cellpadding="2" cellspacing="1">
	  <tr >
			 <td		class="rtitle" width=95>*船公司：</td>
			
             <td  id="shipcom"	class="ltitle">华东海运有限公司         
          </td> 
          <td		class="rtitle" width=95>*装货地点：</td>
          <td  	class="ltitle"> <input id="load_loc" class ="linputrl" value="威海大连路 100号" size=20>         
          </td>
		  <td		class="rtitle" width=95>*截止日期：</td>
          <td  	class="ltitle"><span id="cancel_date" class="ctitle">2008-01-02</span>         
          </td>
      </tr >
      <tr>
		   <td		class="rtitle" width=95>集装箱数：</td>
          <td  id="box_total"	class="ltitle">15         
          </td>
		   <td		class="rtitle" width=95>运输条款：</td>
          <td  id="trans_term"	class="ltitle">CY TO CY         
          </td>
		  <td		class="rtitle" width=95>*发货人名称：</td>
          <td id="sender_name" 	class="ltitle">威海出口公司         
          </td>
		  </tr>		
  
	  <tr>
          <td class="rtitle">审批状态：</td>
          <td class="ltitle">  
          
			未审核</td>
          <td class="rtitle">审批流程：</td><td class="ltitle" colspan="3">        
          <input name="Check_flow_id"   type="hidden" value="StoreStart001" size="10" class="linputrl">
          新发放
          <input name="Audit_state_flag" type="hidden" value="S" size="10" class="linputrl">
          </td>
      </tr>
	  
	</table>

<table width="760">
    <tr>
      <td class="rtitle">
	   
	    
	  是否通过：
			<select name = "Audit_flag">
				<option value="">&nbsp;</option>
				<option value="Y">通过</option>
				<option value="N">不通过</option>
			</select>
      审核意见：<input name="Audit_option" size=20  class="linput">
      <font face="Webdings" class="redcolor">4</font><a href="javascript:make_container_load()">制装箱单</a>
      
   
      
	   
	  
	    
      <font face="Webdings" class="redcolor">4</font><a href="javascript:myClose()">关闭</a>
      
      
      <font face="Webdings" class="redcolor">4</font><a href="#" onclick="java:window.history.go(-1)">返回</a>
      
	  </td>
	</tr>
</table>

</center>

</body>
</html>


